import { axios } from "@/utils/request";
const api = {
    list: '/admin.role/list',
    add: '/admin.role/add',
    edit: '/admin.role/edit',
    deleted: '/admin.role/deleted',
}

/**
 * 列表
 * @param {*} data
 */
export function list(data) {
    return axios({
        url: api.list,
        method: 'post',
        data
    })
}
/**
 * 添加
 * @param {*} data
 */
export function add(data) {
    return axios({
        url: api.add,
        method: 'post',
        data
    })
}
/**
 * 更新
 * @param {*} data
 */
export function edit(data) {
    return axios({
        url: api.edit,
        method: 'post',
        data
    })
}
/**
 * 删除
 * @param {*} data
 */
export function deleted(data) {
    return axios({
        url: api.deleted,
        method: 'post',
        data
    })
}